package cn.ilovese.collect.po.screenshot;

import cn.ilovese.collect.vo.screenshot.ScreenshotVO;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;


@NoArgsConstructor
@Data
public class Screenshot {
    private Integer id;

    private Integer reportId;

    private String url;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getReportId() {
        return reportId;
    }

    public void setReportId(Integer reportId) {
        this.reportId = reportId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public Screenshot(@NonNull ScreenshotVO screenshot){
        id=screenshot.getId();
        reportId=screenshot.getReportId();
        url=screenshot.getUrl();
    }
}